"""
文件里面函数是写yaml文件脚本

env = yaml.safe_load(open("env.yaml"))
读出来是字典
"""

import yaml

# def test_yaml():
#     #
#     env = {
#
#         "default": "prod",
#         "testing-studio":
#
#             {"dev": "127.0.0.1",
#              "test": "",
#              "pre": "",
#              "prod": ""}
#     }
#     with open("env.yaml", "w") as f:
#         yaml.safe_dump(data=env, stream=f)

env = yaml.safe_load(open("D:\chunxiaProject\wxwork_openapi_autotest\env.yaml"))

# print(env["testing-studio"]["dev"])
print(env["prod"])
